package com.moxiao.yfjh.module.activity.controller.admin.productInfo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 相亲商品信息 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class ProductInfoBaseVO {

    @Schema(description = "商品编码")
    private String no;

    @Schema(description = "有无核销：0-是，1-否", example = "1")
    private Byte isWriteoff;

    @Schema(description = "商品名称", example = "赵六")
    private String name;

    @Schema(description = "商品类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "商品类型不能为空")
    private Long productType;

    @Schema(description = "所属商家", example = "25159")
    private Long merchantId;

    @Schema(description = "地址")
    private String address;

    @Schema(description = "供货价", example = "21129")
    private String supplyPrice;

    @Schema(description = "平台售价", example = "7108")
    private String platformPrice;

    @Schema(description = "商品介绍")
    private String productIntroduct;

    @Schema(description = "商品封面")
    private String cover;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态不能为空")
    private Byte status;
}
